package org.sample.springboot.validator.constraints.optional.provider;

public interface OptionalProvider {

	/**
	 * Value of enableField that enable validate optional field.
	 */
	boolean isEnabled(Object value);
	
	/**
	 * Returns optional field value to be validated.
	 * 
	 * @return
	 */
	Object getOptionalValue(Object value);
	
	/**
	 * Returns name of optional field.
	 * 
	 * @return
	 */
	String getOptionalFieldName();

}
